package sbc.ejb3.dao;

import java.util.List;

import javax.ejb.Stateless;

import sbc.ejb3.Sensor;

@Stateless
public class SensorDAO 
		extends AbstractGenericDAO<Sensor, Integer>
		implements SensorRemote {

	public SensorDAO() { }
	
	@SuppressWarnings("unchecked")
	public List<Sensor> getGemesseneSensoren() {
		return this.entityManager.createNamedQuery("GemesseneUnmontierteSensoren").getResultList();
	}
	
	@SuppressWarnings("unchecked")
	public List<Sensor> getUngemesseneSensoren() {
		return this.entityManager.createNamedQuery("UngemesseneSensoren").getResultList();
	}
}
